package scr;

public class Traning01 {
    public static void main(String[] args) {
        int i;
        for (i = 100; i < 1000; i++) ;
        int x = i / 100;
        x = x * x * x;
        int y = i / 10 % 10;
        y = y * y * y;
        int z = i % 10;
        z = z * z * z;
        if (x + y + z == i) ;
        {
            System.out.println(i + "是水仙花数");
        }
    }

}

